package com.ruoyi.daily.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.daily.domain.dto.*;
import com.ruoyi.daily.service.QualityReportOneService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author cmz
 * @Date 2024-05-30 17:59
 */
@RestController
@RequestMapping("/daily/qualityReportOne")
@Api(tags = "经营日报-质量报表1")
public class QualityReportOneController {
    @Resource
    private QualityReportOneService qualityReportOneService;
    
    @ApiOperation("近七天发件业务量")
    @GetMapping("/lastWeekShipmentVolume")
    public R<List<LastWeekShipmentVolumeDto>> lastWeekShipmentVolume() {
        return qualityReportOneService.lastWeekShipmentVolume();
    }
    
    
    /*@ApiOperation("及时揽收率")
    @GetMapping("/timelyCollectionOfYield")
    public R<TimelyCollectionOfYieldDto> timelyCollectionOfYield() {
        return qualityReportOneService.timelyCollectionOfYield();
    }

    @ApiOperation("交货滞留率")
    @GetMapping("/deliveryDelay")
    public R<DeliveryDelayDto> deliveryDelay() {
        return qualityReportOneService.deliveryDelay();
    }

    @ApiOperation("48h滞留")
    @GetMapping("/fortyEightHRetention")
    public R<FortyEightHRetentionDto> fortyEightHRetention() {
        //没有48小时滞留标志
        return qualityReportOneService.fortyEightHRetention();
    }*/

    @ApiOperation("近七天交货时效")
    @GetMapping("/sevenDayDelivery")
    public R<SevenDayDeliveryDto> sevenDayDelivery() {
        return qualityReportOneService.sevenDayDelivery();
    }

    @ApiOperation("近七天虚假签收")
    @GetMapping("/falseReceipt")
    public R<SevenDaysFalseReceiptDto> falseReceipt() {
        return qualityReportOneService.falseReceipt();
    }

    @ApiOperation("近七天签收率")
    @GetMapping("/signingRate")
    public R<List<SigningRateDto>> signingRate() {
        return qualityReportOneService.signingRate();
    }


}
